package com.le.tester.javaThink.fifth.chapter14_StreamingProgramming;

import java.util.stream.Stream;

/**
 * 描述：复制，加倍
 */
public class Duplicator {
    public static void main(String[] args) {
        Stream.generate(() -> "duplicate")
                .limit(3).forEach(System.out::println);
    }
}
